package yns.springboot.guide.demo.configure.data.redis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class JedisSentinelConfigure {

	@Value("${redis.jedis.sentinel.model}")
	private String model;

	@Value("${redis.jedis.sentinel.master}")
	private String master;

	@Value("${redis.jedis.sentinel.password}")
	private String password;

	@Value("${redis.jedis.sentinel.urls}")
	private String urls;

	@Value("${redis.jedis.sentinel.pool.maxTotal}")
	private String maxTotal;

	@Value("${redis.jedis.sentinel.pool.maxIdle}")
	private String maxIdle;

	@Value("${redis.jedis.sentinel.pool.maxWait}")
	private String maxWait;

	@Value("${redis.jedis.sentinel.pool.minEvictableIdle}")
	private String minEvictableIdle;

	@Value("${redis.jedis.sentinel.pool.numTestsPerEvictionRun}")
	private String numTestsPerEvictionRun;

	@Value("${redis.jedis.sentinel.pool.timeBetweenEvictionRunsMillis}")
	private String timeBetweenEvictionRunsMillis;

	@Value("${redis.jedis.sentinel.pool.blockWhenExhausted}")
	private String blockWhenExhausted;

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getMaster() {
		return master;
	}

	public void setMaster(String master) {
		this.master = master;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUrls() {
		return urls;
	}

	public void setUrls(String urls) {
		this.urls = urls;
	}

	public String getMaxTotal() {
		return maxTotal;
	}

	public void setMaxTotal(String maxTotal) {
		this.maxTotal = maxTotal;
	}

	public String getMaxIdle() {
		return maxIdle;
	}

	public void setMaxIdle(String maxIdle) {
		this.maxIdle = maxIdle;
	}

	public String getMaxWait() {
		return maxWait;
	}

	public void setMaxWait(String maxWait) {
		this.maxWait = maxWait;
	}

	public String getMinEvictableIdle() {
		return minEvictableIdle;
	}

	public void setMinEvictableIdle(String minEvictableIdle) {
		this.minEvictableIdle = minEvictableIdle;
	}

	public String getNumTestsPerEvictionRun() {
		return numTestsPerEvictionRun;
	}

	public void setNumTestsPerEvictionRun(String numTestsPerEvictionRun) {
		this.numTestsPerEvictionRun = numTestsPerEvictionRun;
	}

	public String getTimeBetweenEvictionRunsMillis() {
		return timeBetweenEvictionRunsMillis;
	}

	public void setTimeBetweenEvictionRunsMillis(String timeBetweenEvictionRunsMillis) {
		this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;
	}

	public String getBlockWhenExhausted() {
		return blockWhenExhausted;
	}

	public void setBlockWhenExhausted(String blockWhenExhausted) {
		this.blockWhenExhausted = blockWhenExhausted;
	}

}
